<!DOCTYPE html>
<html>
<head>
    <title>entry</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>


        {% block style %}

        {% endblock%}
  

        {%  if sada %}
        <nav class="navbar navbar-default  navbar-inverse  mynav" role="navigation"> 

    <div class="container-fluid"> 
        <div class="navbar-header"> 
            <a class="navbar-brand" href="#">后台管理</a> 
            <a class="navbar-brand" href="/teachers">教师管理</a> 
       
             <a class="navbar-brand" href="/course/{{id}}">课程管理</a> 
        </div> 
        <ul class="nav navbar-nav navbar-right"> 
            <li><a href="/loginout"><span class="  glyphicon glyphicon-log-out"></span> 注销</a></li> 
            <li><a href="#"><span class="glyphicon glyphicon-user"></span> {{name}}</a></li> 
            </ul>
            </div>
            </nav>

        {% else %} 
          <nav class="navbar navbar-default  navbar-inverse  mynav" role="navigation"> 

    <div class="container-fluid"> 
        <div class="navbar-header"> 
            <a class="navbar-brand" href="#">后台管理</a> 
            <a class="navbar-brand" href="#">教师管理</a> 
       
             <a class="navbar-brand" href="#">课程管理</a> 
        </div> 
        <ul class="nav navbar-nav navbar-right"> 
          <li><a href="/loginout"><span class="    glyphicon glyphicon-log-in"></span> 注册</a></li> 
            <li><a href="/entry"><span class="  glyphicon glyphicon-user"></span> 登录</a></li> 
        {% endif %}
        </ul> 
    </div> 
</nav>


{% block content%}

<h3 style="color:red;text-align:center">这是一个很无聊的作者写的很无聊的东西</h3>
<h4 style="color:green;text-align:center">想看视频的请登录后自行点击</h4>

<h5 style="color:black;text-align:center">他很懒不想写界面，他无从下手，他很菜</h5>
<h3 style="color:red;text-align:center">
  可他能怎么办 他也很绝望
</h3>

{% endblock%}
</div>




<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
 
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- 自定义的js要调用 要在引用 -->
{% block script %}{% endblock %}
</body>

</html>